'use strict';
import {Dimensions, PixelRatio, StyleSheet} from 'react-native'
import {Theme} from 'teaset'
import {fontSize, scaleSize} from '../../util/Tool';

const {width} = Dimensions.get('window');

export default {

    isIPhoneX: Theme.isIPhoneX,
    fitIPhoneXTop: 44,
    fitIPhoneXBottom: 34,
    pageBackgroundColor: '#fff',
    overallColor: '#fff',
    borderColor: "#d8d8d8",
    blackColor: "#333",

    // 弹窗提示组件的样式
    alertWidth: 260,
    alertMinHeight: 52,
    alertTitleMaxWidth: 200,
    alertDetailMaxWidth: 230,
    alertActionHeight: 42,
    alertActionColor: '#348fe4',
    alertSeparatorColor: '#eaeaea',
    alertTitleFontSize: fontSize(16),
    alertTitleColor: '#333',
    alertDetailFontSize: fontSize(13),
    alertDetailColor: '#333',
    alertActionFontSize: fontSize(14),

    // action组件
    actionMaxHeight: 230,
    actionTitleFontSize: fontSize(14),
    actionTitleColor: '#333',
    cancelTitleFontSize: fontSize(14),
    cancelTitleColor: '#333',
    titleFontSize: fontSize(12),
    titleColor: '#999',

    // 分享组件的样式
    shareBackColor: '#eeeeee',
    shareActionWidth: scaleSize(100),
    shareActionHeight: scaleSize(100),
    shareActionRadius: 7,
    shareActionTextColor: '#333',
    shareCancelActionHeight: scaleSize(90),
    shareCancelBackColor: '#fff',
    shareCancelTextColor: '#333',

    // 地区选择组件的样式
    areaActionTitleColor: '#5d7f3b',

    // 设置MenuManager的初始化配置，有些样式请去上方teaset里配置，目前因为时间原因先用teaset自带的组件，后续将自定义组件。
    menuOptions: {
        menuAlign: 'end',
        menuPopoverStyle: {backgroundColor: '#fff',},
        menuShowArrow: true,
        menuAnimated: true,
        menuOverlayOpacity: 0.3,
        menuShadow: false,
    },
    // 设置toastManager的初始化配置，有些样式请去上方teaset里配置，目前因为时间原因先用teaset自带的组件，后续将自定义组件。
    toastOptions: {
        position: 'center',
    },

    sbColor: '#fff',
    sbHeight: 40,
    sbBtnPaddingTop: 8,
    sbBtnPaddingBottom: 8,
    sbBtnPaddingLeft: 8,
    sbBtnPaddingRight: 8,
    sbBtnTitleColor: '#989898',
    sbBtnTextFontSize: fontSize(13),
    sbBtnActiveTitleColor: '#337ab7',
    sbBtnActiveTextFontSize: fontSize(13),
    sbIndicatorLineColor: '#337ab7',
    sbIndicatorLineWidth: 2,
    sbIndicatorPositionPadding: 0,


    scTabColor: '#fff',
    scActiveTabColor: '#337ab7',
    scTabTextColor: '#337ab7',
    scActiveTabTextColor: '#fff',
    scTabTextFontSize: fontSize(14),
    scActiveTabTextFontSize: fontSize(14),
    scBorderWidth: StyleSheet.hairlineWidth,

    // ListRow
    rowSeparatorColor: '#dbdbdb',

    navBarPadding: 0,
    navBarBackgroundColor: '#fff',
    navBarTitleColor: '#333',
    navBarTitleFontSize: fontSize(16),
    navBarHeight: 44,

    minPixel: 1 / PixelRatio.get(),
    textColor: '#333',
}